package tk.zater.helloserver.bean;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
class UserInfomappings {
    @GetMapping("/login")
    @ResponseBody
    public boolean getPassword(String password) {
        if(password==null){return false;}
        return Constant.isMathch(password);

    }

}